package com.ych.modules.base.dbEntity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2020/12/5
 * Time: 15:08
 * Description:
 */
@Data
@TableName("t_user_token")
@ApiModel(value = "TUserTokenEntity", description = "数据库-token表")
public class TUserTokenEntity extends AbstractPageEntity {
    @TableId("user_id")
    @ApiModelProperty(value = "用户主键", dataType = "String", notes = "用户主键")
    private String userId;

    @TableField("token")
    @ApiModelProperty(value = "token", dataType = "String", notes = "token")
    private String token;

    @TableField("expire_time")
    @ApiModelProperty(value = "过期时间", dataType = "Date", notes = "过期时间")
    private Date expireTime;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间", dataType = "Date", notes = "创建时间")
    private Date createTime;

    @TableField("update_time")
    @ApiModelProperty(value = "修改时间", dataType = "Date", notes = "修改时间")
    private Date updateTime;
}
